<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/15 0015
 * Time: 15:18
 */
namespace app\admin\controller;
use think\Controller;
class Banner extends Controller{
    protected $obj;
    public function _initialize()
    {
       $this->obj=model('Banner');
    }

    public function index(){
        $list=$this->obj->getBannerList();
        $count=$this->obj->count();
        return $this->fetch('',[
            'list'=>$list,
            'count'=>$count,
        ]);
    }


    public function add(){
        return $this->fetch();
    }
}